package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface AddressDao {
    void add(Address address);

    void addOrderAndAddress(Integer orderId,Integer addressId);

    Page<Address> selectByCondition(String queryString);

    Address findAddressById(int id);

    void edit(Address address);

    void deleteAddress(int id);

    void deleteByIds(int id);

    List<Address> findAll();

    String findRemark(int id);

    String findByOrderId(Integer id);

    void deleteByOrderId(Integer id);
//    List<Map<String, Object>> findSetmealCount();
}
